package com.pf.controller;

import com.pf.dto.ManualReminderReq;
import com.pf.dto.ResultResp;
import com.pf.service.ManualReminderService;
import com.pf.utils.ResultRespUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author PanFei
 * @version 1.0.0
 * @createTime 2022/11/21 20:26
 */
@RestController
@RequestMapping("/reminder")
public class ManualReminderController {

    @Autowired
    private ManualReminderService manualReminderService;

    @PostMapping("/manual")
    public ResultResp manual(@RequestBody ManualReminderReq reminderReq) {
        return ResultRespUtils.success(manualReminderService.manualReminder(reminderReq));
    }

    @PostMapping("/manual2")
    public ResultResp manual2(@RequestBody ManualReminderReq reminderReq) {
        return ResultRespUtils.success(manualReminderService.manualReminder2(reminderReq));
    }

}
